import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*
  测量控制点移交

*/

/**
 * 测量控制点移交列表
 * @param data
 */
 export function getTransferConstructionSurveyControlPointList(data){
    return request({
      url: `${faceApiUrl}/technicalTransferConstructionSurveyControlPoint/getPageTechnicalTransferConstructionSurveyControlPoint`,
      method: 'post',
      data
    })
  } 

/**
 * 获取测量控制点移交详情
 * @param data
 */
 export function getTransferConstructionSurveyControlPointById(data){
    return request({
      url: `${faceApiUrl}/technicalTransferConstructionSurveyControlPoint/getTechnicalTransferConstructionSurveyControlPointById?id=${data.id}`,
      method: 'get',
      data
    })
  } 

  /**
 * 添加测量控制点移交
 * @param data
 */
 export function addTransferConstructionSurveyControlPoint(data){
    return request({
      url: `${faceApiUrl}/technicalTransferConstructionSurveyControlPoint/insertSelective`,
      method: 'post',
      data
    })
  } 

    /**
 * 编辑测量控制点移交
 * @param data
 */
 export function updateTransferConstructionSurveyControlPoint(data){
    return request({
      url: `${faceApiUrl}/technicalTransferConstructionSurveyControlPoint/updateByPrimaryKeySelective`,
      method: 'post',
      data
    })
  } 
  
  /**
 * 删除测量控制点移交
 * @param data
 */
 export function deleteTransferConstructionSurveyControlPoint(data){
    return request({
      url: `${faceApiUrl}/technicalTransferConstructionSurveyControlPoint/deleteByPrimaryKey/${data.id}`,
      method: 'get',
    })
  } 
